//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

public class LiveExamClass implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    private Long classId;
    private Long examId;
    private Integer state;
    private Long createTime;
    private Long createUser;

    public LiveExamClass() {
    }

    public Long getId() {
        return this.id;
    }

    public Long getClassId() {
        return this.classId;
    }

    public Long getExamId() {
        return this.examId;
    }

    public Integer getState() {
        return this.state;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public Long getCreateUser() {
        return this.createUser;
    }

    public LiveExamClass setId(final Long id) {
        this.id = id;
        return this;
    }

    public LiveExamClass setClassId(final Long classId) {
        this.classId = classId;
        return this;
    }

    public LiveExamClass setExamId(final Long examId) {
        this.examId = examId;
        return this;
    }

    public LiveExamClass setState(final Integer state) {
        this.state = state;
        return this;
    }

    public LiveExamClass setCreateTime(final Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public LiveExamClass setCreateUser(final Long createUser) {
        this.createUser = createUser;
        return this;
    }

    public String toString() {
        return "LiveExamClass(id=" + this.getId() + ", classId=" + this.getClassId() + ", examId=" + this.getExamId() + ", state=" + this.getState() + ", createTime=" + this.getCreateTime() + ", createUser=" + this.getCreateUser() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof LiveExamClass)) {
            return false;
        } else {
            LiveExamClass other = (LiveExamClass)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$classId = this.getClassId();
                Object other$classId = other.getClassId();
                if (this$classId == null) {
                    if (other$classId != null) {
                        return false;
                    }
                } else if (!this$classId.equals(other$classId)) {
                    return false;
                }

                Object this$examId = this.getExamId();
                Object other$examId = other.getExamId();
                if (this$examId == null) {
                    if (other$examId != null) {
                        return false;
                    }
                } else if (!this$examId.equals(other$examId)) {
                    return false;
                }

                label62: {
                    Object this$state = this.getState();
                    Object other$state = other.getState();
                    if (this$state == null) {
                        if (other$state == null) {
                            break label62;
                        }
                    } else if (this$state.equals(other$state)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$createTime = this.getCreateTime();
                    Object other$createTime = other.getCreateTime();
                    if (this$createTime == null) {
                        if (other$createTime == null) {
                            break label55;
                        }
                    } else if (this$createTime.equals(other$createTime)) {
                        break label55;
                    }

                    return false;
                }

                Object this$createUser = this.getCreateUser();
                Object other$createUser = other.getCreateUser();
                if (this$createUser == null) {
                    if (other$createUser != null) {
                        return false;
                    }
                } else if (!this$createUser.equals(other$createUser)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof LiveExamClass;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $classId = this.getClassId();
        result1 = result * 59 + ($classId == null ? 43 : $classId.hashCode());
        Object $examId = this.getExamId();
        result1 = result * 59 + ($examId == null ? 43 : $examId.hashCode());
        Object $state = this.getState();
        result1 = result * 59 + ($state == null ? 43 : $state.hashCode());
        Object $createTime = this.getCreateTime();
        result1 = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $createUser = this.getCreateUser();
        result1 = result * 59 + ($createUser == null ? 43 : $createUser.hashCode());
        return result1;
    }
}
